﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using DataStructures;

namespace ShellAnywhere.Model
{
	public class StateTree<T> where T : IParam
	{
		#region ctors
		public StateTree(List<T> paramz = null)
		{
			_TokenTree = new Tree<IToken<T>>();
			Init(paramz);
		}
		#endregion ctors

		#region props
		#endregion props

		#region methods
		public bool Init(List<T> paramz = null)
		{
			bool result = false;

			if (paramz != null)
				_Params = paramz;

			_TokenTree.Clear();
			ITree<IToken<T>> current = _TokenTree;
			List<T> ordered = _Params.OrderBy(p => p.Name).ToList();


			return result;
		}
		#endregion methods

		#region fields
		private ITree<IToken<T>> _TokenTree;
		private List<T> _Params;
		#endregion fields
	}
}
